SetRampMode
Sets the runstate of the current active motor
Contents
Syntax
SetRampMode(mode)
Description
SetRampMode(mode) sets the ramp mode of the current active motor which can be controlled by SendMotorSettings. The value mode can be either 'off', 'up' or 'down'. In the case of 'off' no ramp up mode is used fo rthe current active motor. 'up' provides the motor to accelerate from the current power speed to the next power speed set by SetPower during the next rotation angle in degrees set by SetAngleLimit. 'down' provides a deceleration, respectively. The mode setting takes only affect with the next SendMotorSettings command.
Examples
SetMotor(MOTOR_B);
SetPower(76);
SetAngleLimit(3600);
SetRampMode('up');
SendMotorSettings();
See also
SendMotorSettings, SetPower, SetAngleLimit
Signature
- Author: Linus Atorf, Alexander Behrens (see AUTHORS)
- Date: 2007/10/15
- Copyright: 2007-2008, RWTH Aachen University